<!DOCTYPE html>
<html>
	<head>
	    <title>河南全一安防</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <script src="/admin/js/rem.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="/admin/css/lostblade.css"/>
		
		<!--引用jquery库-->
		<!-- <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/xiugai.js" type="text/javascript" charset="utf-8"></script> -->
			
		<title></title>
	</head>
	<body>
	      <!-- 连接服务器时释放 -->
	<!-- {{csrf_field()}} -->
		<div class="header">
			<img src="/admin/images/logo1.png"/>
			<p>已有账号？去<a href="/admin/login/index">登录</a></p>
		</div>
		<div class="body">
			<p>忘记密码</p>
			<div class="first information">
				<label for="" class="title">账号：</label>
				<input type="text" id="account" class="input" placeholder="请输入用户账号"/>
				<div class="tishi">
					
				</div>
			</div>
			<div class="information">
				<label for="" class="title">手机号码：</label>
				<input type="tel" id="phone" class="input" placeholder="请输入手机号码"/>
				<div class="tishi">
					
				</div>
			</div>
			<div class="information" id="fad">
				<p><input type="button" id="btn" value="下一步"/></p>
			</div>
		</div>
		<div class="footer">
			<p>&copy2017 郑州全一安防科技有限公司 版权所有</p>			
		</div>
	</body>
</html>
<script>
    $('#btn').click(function () {
        var account = $('#account').val();
        var phone = $('#phone').val();
        $.ajax({
            type:'post',
            url:'/admin/login/lost',
            async:false,
            data:{
                "_token": $("input[name=_token]").val(),
                'account':account,
                'phone':phone
            },
            dateType:'json',
            success:function (str) {
                var data = jQuery.parseJSON(str);
                if(data.status == '1'){
                    location.href = 'change?ag='+data.agentId;
                }
            }
        });
    })
</script>

